package com.wuyoucar.service.Impl;

import com.wuyoucar.service.ICalculatorService;
import com.wuyoucar.util.Calculator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: jiangdz
 * @ProjectName: mywuyou_car
 * @Package: com.wuyoucar.service.Impl
 * @ClassName: CalculatorServiceImpl
 * @Description:
 * @Date: 2020-09-22  10:53
 * @UpdateUser: asus
 * @UpdateDate: 2020-09-22  10:53
 * @UpdateRemark: [说明本次修改内容]
 * @Version: [v1.0]
 * @Since JDK 1.8
 */
@Service
public class CalculatorServiceImpl implements ICalculatorService {
    @Autowired
    private Calculator calculator;

    @Override
    public Double calculator(int[] id, int compensateLines, int price, int personnel, int scratchLines, int seating, int year) {
        return calculator.calculator(id,compensateLines, price, personnel, scratchLines,seating, year);
    }

}
